from  random import  *
seed()
faces=[0]*13
for i in range(100000):
    face1 = int(random() * 100) % 6 + 1
    face2 = int(random() * 100) % 6 + 1
    faces[face1+face2] += 1
print("模拟两个骰子的结果如下：")
for i in range(2,13):
    rate = faces[i] / 100000
    print("{}出现的次数为{}   出现的概率为{}".format(i,faces[i],rate,end=""))

